package com.warm.base.design.b_memento.black;

/**
 * @Date: 2019/11/28 10:08
 * @Author: LChuang
 * @Description:
 */
public class BCaretaker {

    private IMemento memento;

    /**
     * 备忘录取值方法
     * @return
     */
    public IMemento retrieveBMemento(){
        return memento;
    }

    /**
     * 备忘录赋值方法
     * @param memento
     */
    public void saveMemento(IMemento memento){
        this.memento = memento;
    }
}
